import com.lbi.animation.group.Queue;
import com.lbi.animation.group.Set;
import com.lbi.animation.single.Tween;
import com.lbi.core.helper.Delegate;

import animation.queue.QueueTestCase;

/**
 * @author micfor
 */
class animation.queue.QueueWithStackTest extends QueueTestCase {
	private var className : String = "QueueWithStackTest";
	private var test_obj : Queue;

	private var first_item_value : Number;
	private var first_tween : Tween;

	private var second_item_value : Number;
	private var second_tween : Tween;

	private var third_item_value : Number;
	private var third_tween : Tween;


	function run():Void{
		test_obj = new Queue();
		addTweenValuePairs(["first","second","third"]);
		assertValuesEqualTo(0,[first_item_value,second_item_value,third_item_value]);
		var stack:Set = new Set([first_tween,second_tween]);
		test_obj.addAnimation(stack);
		test_obj.addAnimation(third_tween);
		test_obj.addEventListener("complete",Delegate.create(super,super.run));
		test_obj.go();
	}
	
	private function testQueueWithStackInIt():Void{
		assertValuesEqualTo(TARGET_VALUE,[first_item_value,second_item_value,third_item_value]);
	}


}